package com.recsmile.sgs.client.listener;

import java.util.HashSet;
import java.util.Set;

import com.recsmile.sgs.client.entity.GameRoom;

public abstract class ServerInGamePlayerListener {

	protected final String name;
	protected final Set<String> otherNames;
	protected final GameRoom room;
	
	protected ServerInGamePlayerListener(String name, Set<String> allNames, GameRoom room) {
		this.name = name;
		this.room = room;
		this.otherNames = new HashSet<String>();
		for (String n : allNames) {
			if(!n.equals(name)){
				otherNames.add(n);
			}
		}
	}
	
}
